package Leetcode.string;

public class Strstr {
    public int strStr(String haystack, String needle) {

        return haystack.indexOf(needle);

    }

    public static void main(String[] args) {
        String s1="mississippi";
        String s2="ss";
        Strstr strstr =new Strstr();
        System.out.println(strstr.strStr(s1,s2));

    }

}
